<!DOCTYPE html>
<#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
<#assign f = JspTaglibs["http://www.casic304.cn/f"] />
<head>
    <meta charset="utf-8">
    <title>质量管理体系信息列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
</head>
<body class="listBody">
<div class="qbdms-list">
    <div class="layui-table-view-body">
        <table id="wQbdQualitymanageTable" lay-filter="wQbdQualitymanageTable"></table>
    </div>
</div>
<!-- 列表头部工具栏 -->
<script type="text/html" id="wQbdQualitymanageHeaderToolsBar">
    <div class="ccpui-enterSel">
        <div class="layui-btn-container">

            <#if isadd=true>
            <@f.a alias="xzan_shbfhx302" event="add" css="layui-btn layui-btn-sm fillBtn">
                <span>新增</span>
            </@f.a>
            </#if>
            <@f.a alias="scan_shbfhx302" event="delete" css="layui-btn layui-btn-sm">
                <span>删除</span>
            </@f.a>
            <a class="layui-btn layui-btn-sm" lay-event="export">
                <span>导出</span>
            </a>
            <!--<a class="layui-btn layui-btn-sm" lay-event="import">
                <i class="layui-icon layui-icon-download-circle"></i>
                <span>导入</span>
            </a>
            <@f.a alias="shbfhxdcan" event="export" css="layui-btn layui-btn-sm">
                <i class="layui-icon layui-icon-export"></i>
                <span>导出</span>
            </@f.a>-->
<!--            <@f.a alias="shbfhxxx_dran2,shbfhxxx_dran3" event="import" css="layui-btn layui-btn-sm">-->
<!--                <span>导入</span>-->
<!--            </@f.a>-->
            <@f.a alias="sban_shbfhx302" event="report" css="layui-btn layui-btn-sm">
                <span>上报</span>
            </@f.a>
            <a class="layui-btn layui-btn-sm" lay-event="listStyle">
                <span>配置列</span>
            </a>
        </div>
        <form class="layui-form" action="" lay-filter="wQbdQualitymanageQueryForm" >
            <div class="layui-form-body selch">
                <div class="table-top-filter layui-row">
                    <div class="qbdms-listForm">
                        <label class="layui-form-label">审核开始时间</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input start_time2 filter-value" name="Q_beginFAudittime_DL" placeholder="请输入" readonly/>
                        </div>
                    </div>
                    <div class="qbdms-listForm">
                        <label class="layui-form-label">审核结束时间</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input end_time2 filter-value" name="Q_endFAudittime_DE" placeholder="请输入" readonly/>
                        </div>
                    </div>

                    <div class="qbdms-listForm" id="">
                        <label class="layui-form-label">受审单位名称</label>
                        <div class="layui-input-block">
                            <select name="Q_fTrialunitnameid_S" class="layui-input filter-value" lay-search=""></select>
                        </div>
                    </div>
                   <div class="qbdms-listForm">
                        <label class="layui-form-label">审核单位名称</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input filter-value" name="Q_fNameofauditinguni_SL" placeholder="请输入"/>
                        </div>
                    </div>
                    <div class="qbdms-listForm">
                        <label class="layui-form-label">审核项目名称</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input filter-value" name="Q_audititemsname_SL" placeholder="请输入"/>
                        </div>
                    </div>
                   <div class="qbdms-listForm">
                        <label class="layui-form-label">审核类型</label>
                       <div class="layui-input-block">
                        <@dicSelect.dic name="Q_fAudittype_SL" nodeKey="shlx" css="layui-input filter-value" />
                       </div>
                    </div>
                   <div class="qbdms-listForm">
                        <label class="layui-form-label">不合格项性质</label>
                       <div class="layui-input-block">
                        <@dicSelect.dic name="Q_fUnqualifiednature_SL" nodeKey="bhgxxz" css="layui-input filter-value" />
                       </div>
                    </div>
                    <div class="qbdms-listForm">
                        <label class="layui-form-label">依据标准</label>
                        <div class="layui-input-block">
                            <select name="Q_fAccordingstandar_S" class="layui-input filter-value"></select>
                        </div>
                    </div>

                </div>
                <div class="selchBtn">
                    <a class="layui-btn layui-btn-sm fillBtn" lay-event="query">
                        <span>查询</span>
                    </a>
                    <div class="layui-btn-group">
                        <button type="button" class="layui-btn layui-btn-sm" lay-event="clears" style="width: 28px;font-size: 12px;padding: 0">
                            <i class="iconfont  data-iconcommon_refresh"></i>
                        </button>
                        <button type="button" class="layui-btn layui-btn-sm screenParent" lay-event="screen" style="width: 28px;font-size: 12px;padding: 0">
                            <i class="iconfont data-iconcommon_downarrow screen"></i>
                        </button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</script>
<!-- 右侧工具栏 -->
<script type="text/html" id="wQbdQualitymanageRightToolsBar">
    {{# if('${currentUserId}'==d.createBy && d.allowEdit && d.reportStatus !== '12'){}}
    <@f.a alias="xgan_shbfhx302" event="edit" css="RightBtn">编辑</@f.a>
    {{#  } }}
    <@f.a alias="xqan_shbfhx302" event="particulars" css="RightBtn">详情</@f.a>

    <!--    <a class="RightBtn" lay-event="particulars">详情</a>-->
    {{# if((d.reportStatus==4||d.reportStatus==11||d.reportStatus==25) && '${currentUserId}'==d.createBy && d.runId == ''&&d.allowDel){ }}
    <@f.a alias="scan_shbfhx302" event="del" css="RightBtn">删除</@f.a>
    {{#  } }}
    {{# if('${currentUserId}'==d.createBy && ((d.reportStatus == '25' && d.runId == '')||d.reportStatus == '27')){ }}
    <@f.a alias="shbfhxxx_qdlc2" event="run" css="RightBtn">启动</@f.a>
    {{# } }}

</script>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    //一般直接写在一个js文件中
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'table', 'form', 'common', 'publicMethods', 'jquery', 'layer','propsHandle'], function () {
            var table = layui.table;
            var form = layui.form;
            var common = layui.common;
            var publicMethods = layui.publicMethods;
            var $ = layui.jquery;
            var layer = layui.layer;
        var propsHandle = layui.propsHandle;
        var defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle();  // 实例化模板功能部分
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
            common.tableSort("wQbdQualitymanageTable");

            var currentSystemLevel = "${currentSystemLevel}";
            var orderCols = [{type: 'checkbox', fixed: 'left'},{field: 'sn', type: 'numbers', title: '序号', fixed: 'left'}];
            var fillDeptCols = [];
            if ("GROUPLEVEL" === currentSystemLevel) {
                fillDeptCols = [{field: 'filldeptHospital', title: '数据来源单位', sort: false, sortname: 'filldepthospital',minWidth:'150'}];
            } else if ("HOSPITALLEVEL" === currentSystemLevel) {
                fillDeptCols = [{field: 'filldept', title: '数据来源单位', sort: false, sortname: 'filldept',minWidth:'150'}];
            } else if ("PLANTLEVEL" === currentSystemLevel) {
                fillDeptCols = [{field: 'filldept', title: '数据来源单位', sort: false, sortname: 'filldept',minWidth:'150'}];
            }
            var commonCols = [
                 {field: 'audititemsname', title: '项目名称', sort: false, sortname: 'audititemsname', minWidth:'150'}
                , {field: 'fNameofauditinguni', title: '审核单位名称', sort: false, sortname: 'f_nameofauditinguni', minWidth:'150'}
                ,{field: 'fTrialdeptname', title: '受审核部门', sort: false, sortname: 'f_trialdeptname', minWidth:'150'}
                ,{
                    field: 'fAudittime', title: '审核时间', sort: false, sortname: 'f_audittime',minWidth:'120', templet: function (d) {
                        return publicMethods.timeData(d.fAudittime);
                    }, width: 120
                }
                , {field: 'secret', title: '密级', sort: false, sortname: 'secret',minWidth:'150'}
                , {field: 'fAudittype', title: '审核类型', sort: false, sortname: 'f_audittype',minWidth:'120'}
                , {field: 'fUnqualifiednature', title: '不合格项性质', sort: false, sortname: 'f_unqualifiednature',minWidth:'150'}
                // , {field: 'fAccordingstandar', title: '依据标准', sort: false, sortname: 'f_accordingstandar',minWidth:'100'}
                , {field: 'flowStatusStr', title: '状态', sort: false, sortname: 'flowStatusStr', minWidth: 140}


            ];
            var hideCols = [/*{field: 'id', title: '主键', sort: false, sortname: 'id'},*/
                // {field: 'fTrialdeptname', title: '受审核部门名称', sort: false, sortname: 'f_trialdeptname', hide: true,minWidth:'150'}
                , {field: 'secret', title: '密级', sort: false, sortname: 'secret', hide: true,minWidth:'80'}
                , {field: 'fStandardclause', title: '标准条款', sort: false, sortname: 'f_standardclause', hide: true,minWidth:'120'}
                , {field: 'fStandardcontent', title: '标准内容', sort: false, sortname: 'f_standardcontent', hide: true,minWidth:'100'}
                , {field: 'fSubstandardclauses', title: '子标准条款', sort: false, sortname: 'f_substandardclauses', hide: true,minWidth:'100'}
                , {field: 'fSubstandardcontent', title: '子标准内容', sort: false, sortname: 'f_substandardcontent', hide: true,minWidth:'150'}
                , {field: 'fDescriptionsubst', title: '不合格事实描述', sort: false, sortname: 'f_descriptionsubst', hide: true,minWidth:'180'}
                , {field: 'fCauseanalysis', title: '原因分析', sort: false, sortname: 'f_causeanalysis', hide: true,minWidth:'100'}
                , {field: 'fCorrectivemeasures', title: '纠正措施', sort: false, sortname: 'f_correctivemeasures', hide: true,minWidth:'100'}
                , {field: 'fCiteoneantithree', title: '举一反三', sort: false, sortname: 'f_citeoneantithree', hide: true,minWidth:'100'}]
            var manageCols = [{
                minWidth: 200,
                fixed: 'right',
                title: '管理',
                toolbar: '#wQbdQualitymanageRightToolsBar'
            }];
            var diyCols = [];
            // if ("GROUPLEVEL" !== currentSystemLevel) {
            //     diyCols = [{
            //         field: 'reportStatusStr', title: '状态', sort: false, sortname: 'REPORT_STATUS', hide: false,minWidth:'200', templet: function (d) {
            //             return common.stateType(d);
            //         }
            //     }];
            // }
            var totalCols = [];
            totalCols = totalCols.concat(orderCols).concat(commonCols).concat(manageCols);

            var tableH = publicMethods.tabHeight();

            var cols = '${cols}';
            //第一个实例
            window.tableInstace = function (tcols) {
                if (tcols) {
                    cols = tcols;
                }
                if (cols) {
                    cols = JSON.parse(cols, function (k, v) {
                        if (v.indexOf && v.indexOf('function') > -1) {
                            return eval("(function(){return " + v + " })()")
                        }
                        return v;
                    })
                }
                window.tableInstace.initCols = totalCols;
                window.tableInstace.tRender = table.render({
                    elem: '#wQbdQualitymanageTable'
                    , height: tableH
                    , url: serverPath.qbdmsPath + '/qbdms/wQbdQualitymanage/list'
                    ,page: publicMethods.pageFun() //开启分页
                    , defaultToolbar: ['']
                    , limit: 20
                    , toolbar: '#wQbdQualitymanageHeaderToolsBar'
                    , method: 'post'
                    , autoSort: false //是否排序
                    , cols: [cols ? cols : totalCols], done: function () {
                        common.tableSelectCon('.ccpui-enterSel .layui-form input', 'a[lay-event=query]', '.ccpui-enterSel');
                    }
                    ,parseData: function(res){ //res 即为原始返回的数据
                        common.parseDataList(res,['filldeptHospital','filldept','fAudittime','fNameofauditinguni','fTrialunitname',
                        'fAudittype','fUnqualifiednature','fAccordingstandar','secret','fStandardclause','fStandardcontent']);
                        return {
                            "code": res.code, //解析接口状态
                            "msg": res.msg, //解析提示文本
                            "count": res.count, //解析数据长度
                            "data": res.data //解析数据列表
                        };
                    }
                });
            }
            window.tableInstace(cols);
            isShowTrialunitnameidDiv();
            dateReflash();
            //list页面初始化展开按钮tips展示（展开按钮类名）
            publicMethods.tipsAuto('.screen')
            //筛选条件初始化（页面表格的Id，是否初始化（true、false））
            common.initScreenTop('wQbdQualitymanageTable',true);

            function dateReflash() {
                publicMethods.reflashDate({startName: '.start_time1', endName: '.end_time1'});
                publicMethods.reflashDate({startName: '.start_time2', endName: '.end_time2'});
                publicMethods.reflashDate({startName: '.start_time3', endName: '.end_time3'});
                publicMethods.reflashDate({startName: '.start_time4', endName: '.end_time4'});
            }

            function reflashQuery(isClear) {
                common.tableConditionRender("wQbdQualitymanageTable", "wQbdQualitymanageQueryForm", {where: {}}, isClear, false, 20);
                // var originOrgList = eval('${originOrgList}'); //受审单位名称
                // common.initDicData("Q_fTrialunitnameid_S", originOrgList, "");
                var deptList = eval('${deptList}');
                common.initDicData("Q_fTrialunitnameid_S", deptList, "");
                var accordingStandards = ${accordingStandards}; // 依据标准
                var initAccordingStandards = function(optionObj, item){
                    optionObj.text = item.accordingStandard;
                    optionObj.value = item.accordingStandard;
                };
                common.initDicData("Q_fAccordingstandar_S", accordingStandards, "", initAccordingStandards);
                isShowTrialunitnameidDiv();
            }

            //监听排序事件
            table.on('sort(wQbdQualitymanageTable)', function () {
                reflashQuery(false);
            });

            table.on('toolbar(wQbdQualitymanageTable)', function (obj) {
                var checkStatus = table.checkStatus(obj.config.id);
                var data = checkStatus.data;
                var _this = this;
                var layerH=publicMethods.layHeight('.listBody');
                switch (obj.event) {
                    case 'add':
                        window.location.href = serverPath.qbdmsPath + "/qbdms/wQbdQualitymanage/view/add";
                        break;
                    case 'delete':
                        var array = "";
                        for (var i = 0; i < data.length; i++) {
                            /*if (data[i].runId === "") {
                                array += data[i].id + ",";
                            } else {
                                layer.alert("所选数据中包含有流程的数据,请取消勾选后再删除!");
                                return;
                            }*/
                            array += data[i].id + ",";
                        }
                        delFun(data, array);
                        break;
                    case 'export':
                        if (data.length == 0) {
                            layer.confirm(publicMethods.confirmStyle('还没有选择，是否导出全部?'),{title: false,skin: 'confirm-class'}, function (index) {
                                layer.close(index);
                                var url = serverPath.qbdmsPath + '/qbdms/wQbdQualitymanage/exportData';
                                var param = "";
                                $("form[lay-filter='wQbdQualitymanageQueryForm']").find(".filter-value").each(function (i, value) {
                                    param += "&" + this.name + "=" + this.value
                                });
                                open(url, param);
                            });
                        } else {
                            layer.confirm(publicMethods.confirmStyle('确定导出吗?'),{title: false,skin: 'confirm-class'}, function (index) {
                                layer.close(index);
                                var ids = [];
                                for (var i = 0; i < data.length; i++) {
                                    ids.push(data[i].id);
                                }
                                var url = serverPath.qbdmsPath + '/qbdms/wQbdQualitymanage/exportData';
                                open(url, "&id=" + ids);
                            });
                        }
                        break;
                    case "import":
                        common.importInit('wQbdQualitymanageTable',"/qbdms/wQbdQualitymanage/importData",true,"/importTemplates/质量管理体系.xlsx");
                        dateReflash();
                        break;
                    case "query":
                        reflashQuery(false);
                        dateReflash();
                        // ssdwmc()
                        break;
                    case "clears":
                        reflashQuery(true);
                        dateReflash();
                        // ssdwmc()
                        break;
                    case "screen":
                        common.initScreenTop('wQbdQualitymanageTable');
                        dateReflash();
                        form.render();
                        break;
                    case "listStyle":
                        layer.open({
                            type: 2,
                            area: ['80%', layerH],
                            skin: 'qbdms-layerFormBtn',
                            title: ['新增列表样式', 'font-size:14px;'],
                            content: __ctx + '/qbdms/wCustomColumns/view/list',
                            success:function (layero, index) {
                                publicMethods.tipsAuto(layero.find('.layui-layer-setwin'),'点击这里关闭弹框哦',2000)
                            }
                        });
                        break;
                    case "report":
                        var array = "";
                        for (var i = 0; i < data.length; i++) {
                            array += data[i].id + ",";
                        }
                        //业务表名,勾选数据主键,流程key,table标签lay-filter属性值,form标签lay-filter属性值,是否允许重复上报,页面所在包名,流程定义id
                        common.report("w_qbd_qualitymanage", array, "plantToHospital", "wQbdQualitymanageTable", "wQbdQualitymanageQueryForm", false, "wQbdQualitymanage", "plantToHospital:1:72d05d40362249118c5453aa60c6da90");
                        dateReflash();
                        break;
                }
                ;
            });

            table.on('tool(wQbdQualitymanageTable)', function (obj) {
                var data = obj.data, //获得当前行数据
                    layEvent = obj.event; //获得 lay-event 对应的值
                switch (layEvent) {
                    case "edit":
                        window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdQualitymanage/view/add?id=' + data.id + "&runId=" + data.runId
                        break;
                    case "particulars":
                        window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdQualitymanage/view/particulars?id=' + data.id;
                        break;
                    case "del":
                        delFun(data, data.id);
                        break;
                    case "run":
                        layer.confirm("确定启动该条信息吗?", function (index) {
                            var load = layer.load(1, {
                                shade: [0.3, '#ccc'] //0.1透明度的白色背景
                            });
                            layer.close(index);
                            var nowData = {
                                "id": data.id,
                                "fillman": data.fillman,
                                "fillmanaccount": data.fillmanaccount,
                                "filldept": data.filldept,
                                "filldeptid": data.filldeptid,
                                "filldate": data.filldate,
                                "secret": data.secret,
                                "belongdeptname": data.belongdeptname,
                                "fMemo": data.fMemo,
                                "fNameofauditinguni": data.fNameofauditinguni,
                                "fTrialunitname": data.fTrialunitname,
                                "fTrialunitnameid": data.fTrialunitnameid,
                                "fTrialdeptname": data.fTrialdeptname,
                                "fTrialdeptnameid": data.fTrialdeptnameid,
                                "fAudittime": data.fAudittime,
                                "fAudittype": data.fAudittype,
                                "fUnqualifiednature": data.fUnqualifiednature,
                                "fAccordingstandar": data.fAccordingstandar,
                                "fStandardclause": data.fStandardclause,
                                "fSubstandardclauses": data.fSubstandardclauses,
                                "fStandardcontent": data.fStandardcontent,
                                "fSubstandardcontent": data.fSubstandardcontent,
                                "fDescriptionsubst": data.fDescriptionsubst,
                                "fCauseanalysis": data.fCauseanalysis,
                                "fCorrectivemeasures": data.fCorrectivemeasures,
                                "fCiteoneantithree": data.fCiteoneantithree,
                                "tenantId": data.tenantId,
                                "createBy": data.createBy,
                                "createTime": data.createTime,
                                "updateBy": data.updateBy,
                                "updateTime": data.updateTime,
                                "reportStatus": data.reportStatus,
                                "reportReason": data.reportReason,
                                "reportStatusTemp": data.reportStatusTemp,
                                "returnmsg": data.returnmsg
                            };
                            $.ajax({
                                url: serverPath.qbdmsPath + "/qbdms/wQbdQualitymanage/run",
                                type: "post",
                                data: JSON.stringify(nowData),
                                dataType: 'json',
                                contentType: 'application/json',
                                success: function (data) {
                                    layer.close(load);//关闭layer.load
                                    layer.alert(data.msg);
                                    //执行重载
                                    reflashQuery(true);
                                    dateReflash();
                                },
                                error: function (XMLHttpRequest, textStatus, errorThrown) {
                                    layer.close(load);//关闭layer.load
                                    layer.alert(data.msg);
                                    //执行重载
                                    reflashQuery(true);
                                    dateReflash();
                                }
                            })
                        })
                        break;
                }
            });

            function delFun(data, id) {
                if (data.length === 0) {
                    layer.confirm(publicMethods.confirmStyle("请先选择一行数据!"),{title: false,skin: 'confirm-class'});
                } else {
                    layer.confirm(publicMethods.confirmStyle('确定删除当前数据吗?'),{title: false,skin: 'confirm-class'},function (index) {
                        layer.close(index);
                        $.ajax({
                            url: serverPath.qbdmsPath + "/qbdms/wQbdQualitymanage/del",
                            type: "post",
                            data: {id: id},
                            dataType: 'json',
                            success: function (data) {
                                layer.confirm(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                                //执行重载
                                reflashQuery(true);
                                dateReflash();
                            },
                            error: function (XMLHttpRequest, textStatus, errorThrown) {
                                layer.confirm(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                                //执行重载
                                reflashQuery(true);
                                dateReflash();
                            }
                        })
                    })
                }
            }

            window.Initialization = function () {
                reflashQuery(false);
                dateReflash();
            };
            /*刷新时间控件*/
            dateReflash();

            var originOrgList = eval('${originOrgList}'); //受审单位名称
            common.initDicData("Q_fTrialunitnameid_S", originOrgList, "");

            var accordingStandards = ${accordingStandards}; // 依据标准
            var initAccordingStandards = function(optionObj, item){
                optionObj.text = item.accordingStandard;
                optionObj.value = item.accordingStandard;
            };
            common.initDicData("Q_fAccordingstandar_S", accordingStandards, "", initAccordingStandards);

            function returnComments(d) {
                return "<a style=\"cursor: pointer;color:red\" onclick=\"layer.open({title: '退回意见',content: '" + d.returnmsg + "'});\">" + d.reportStatusStr + "</a>";
            }

            /**
             * 是否显示受审单位名称检索条件，三级单位去掉【受审单位名称】检索条件
             */
            function isShowTrialunitnameidDiv() {
                if ("PLANTLEVEL" === currentSystemLevel) {
                    $("#fTrialunitnameidDiv").removeClass();
                    $("#fTrialunitnameidDiv").addClass("layui-hide");

                    form.render();
                }
            }


            common.tableSort("wQbdQualitymanageTable");

        var deptList = eval('${deptList}');
        common.initDicData("Q_fTrialunitnameid_S", deptList, "");

            function open(url, param) {
                console.log(param)
                var curUrl = url;
                layer.open({
                    type: 2,
                    area: ['700px', '520px'],
                    title: ['自定义导出', 'font-size:14px;'],
                    content: serverPath.qbdmsPath + '/qbdms/wQbdQualitymanage/view/export',
                    btnAlign: 'c',
                    skin: 'qbdms-layerFormBtn',
                    btn: ['确定', '取消'],
                    yes: function (index, layero) {
                        url = curUrl;
                        var iframeWin = window["layui-layer-iframe" + index];
                        var data = iframeWin.getData();
                        if (data) {
                            url = url + "?data=" + JSON.stringify(data) + param;
                            window.location.href = encodeURI(url)
                        }
                    }
                });
            }
        }
    );
</script>
</body>
</html>